<?php 
/* SVN FILE: $Id$ */
/* ProfesionalServicio Test cases generated on: 2009-12-06 01:12:30 : 1260077430*/
App::import('Model', 'ProfesionalServicio');

class ProfesionalServicioTestCase extends CakeTestCase {
	var $ProfesionalServicio = null;
	var $fixtures = array('app.profesional_servicio', 'app.profesional', 'app.empresa', 'app.sucursal', 'app.servicio');

	function startTest() {
		$this->ProfesionalServicio =& ClassRegistry::init('ProfesionalServicio');
	}

	function testProfesionalServicioInstance() {
		$this->assertTrue(is_a($this->ProfesionalServicio, 'ProfesionalServicio'));
	}

	function testProfesionalServicioFind() {
		$this->ProfesionalServicio->recursive = -1;
		$results = $this->ProfesionalServicio->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('ProfesionalServicio' => array(
			'profesional_id'  => 1,
			'empresa_id'  => 1,
			'sucursal_id'  => 1,
			'servicio_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>